<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>9.练习2：运算符-逻辑运算符优先级</title>
    <script>
        //      false     true    false  
        var a = 3 > 5 && 2 < 7 && 3 == 4;
        console.log(a); // false

        //       true     true      true
        var b = 3 <= 4 || 3 > 1 || 3 != 2;
        console.log(b); // true

        //       false
        var c = 2 === '2';
        console.log(c); // false

        //     true true  false
        var d = !c || b && a;
        console.log(d); // true
    </script>
</head>

<body>

</body>

</html>